package com.hualan.controller;

import com.hualan.service.impl.ArticleTypeService;
import com.hualan.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/articletype")
public class ArticleTypeController {

    @Autowired
    private ArticleTypeService articleTypeService;

    @GetMapping("/getAllArticleType")
    public R getAllArticleType(){
        return R.success(articleTypeService.getAllArticle());
    }

}
